package io.renren.modules.iotp.entity;

import java.util.List;

/**
 * @ClassName: DeviceInfo
 * @Description: 设备信息实体bean
 * @author 周西栋
 * @date 2018年5月7日
 *
 */
public class DeviceInfo {

	/**
	 * 设备id
	 */
	private Integer id;
	
	/**
	 * 设备名称
	 */
	private String name;
	
	/**
	 * 设备地址
	 */
	private String addr;
	
	/**
	 * 设备通讯超时时间（秒）
	 */
	private Integer time_out;
	
	/**
	 * 默认打包间隔时间（秒）
	 */
	private Integer time_span;
	
	/**
	 * 设备下挂载的变量
	 */
	private List<VarInfo> var_info_list;

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the addr
	 */
	public String getAddr() {
		return addr;
	}

	/**
	 * @param addr the addr to set
	 */
	public void setAddr(String addr) {
		this.addr = addr;
	}

	/**
	 * @return the time_out
	 */
	public Integer getTime_out() {
		return time_out;
	}

	/**
	 * @param time_out the time_out to set
	 */
	public void setTime_out(Integer time_out) {
		this.time_out = time_out;
	}

	/**
	 * @return the time_span
	 */
	public Integer getTime_span() {
		return time_span;
	}

	/**
	 * @param time_span the time_span to set
	 */
	public void setTime_span(Integer time_span) {
		this.time_span = time_span;
	}

	/**
	 * @return the var_info_list
	 */
	public List<VarInfo> getVar_info_list() {
		return var_info_list;
	}

	/**
	 * @param var_info_list the var_info_list to set
	 */
	public void setVar_info_list(List<VarInfo> var_info_list) {
		this.var_info_list = var_info_list;
	}

	/* (非 Javadoc)
	 * <p>Title: toString</p>
	 * <p>Description: </p>
	 * @return
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "DeviceInfo [id=" + id + ", name=" + name + ", addr=" + addr + ", time_out=" + time_out + ", time_span="
				+ time_span + ", var_info_list=" + var_info_list + "]";
	}
}
